<template>
    <div class="friend">
        <lazy-component>
            <Post v-for="(post,index) in list" :key="index" :post="post" :isGroup='true' v-lazy="post"/>
        </lazy-component>
    </div>
</template>

<script>
import Post from '../common/post/Post.vue'
import axios from 'axios'
export default {
    name:'Friend',
    components:{
        Post
    },
    data() {
        return {
            list:null
        }
    },
    props:['post'],
    mounted() {
        // axios({
        //     url:'/body/findSuch',
        //     method:'get',
        //     params:{
        //         classname:'校园生活',
        //         // userId:1//默认的用户id
        //     }
        // }).then(data=>{
        //     this.list = data.data.data
        //     console.log(this.list)
        // }).catch(err=>{
        //     console.log(err)
        // })
        this.list = [
            {
                bodyId: 34,
                classname: "校园生活",
                collection: 147,
                content: "校内风景",
                img: "https://img0.baidu.com/it/u=3147551902,1507581095&fm=253&fmt=auto&app=138&f=JPEG?w=480&h=854;",
                imgs: `https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fc-ssl.duitang.com%2Fuploads%2Fitem%2F201701%2F03%2F20170103132237_AxfrU.jpeg&refer=http%3A%2F%2Fc-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1651479686&t=89064db87b88901d9f5867a9b0ce8679;
                https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fb-ssl.duitang.com%2Fuploads%2Fitem%2F201612%2F09%2F20161209114540_w4aZi.thumb.700_0.jpeg&refer=http%3A%2F%2Fb-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1651479686&t=70bea2928e39c4966b2d2e9cb2d53227;
                https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fb-ssl.duitang.com%2Fuploads%2Fitem%2F201611%2F08%2F20161108095024_8tjLP.thumb.700_0.jpeg&refer=http%3A%2F%2Fb-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1651479686&t=1ab03c8fb0df2bee94972db79104da5d;
                https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fwww.zzvips.com%2Fuploads%2Fallimg%2F191209%2F205J94G2-1.jpg&refer=http%3A%2F%2Fwww.zzvips.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1651479686&t=713003960f129708658412dc5b68ba86;
                https://img0.baidu.com/it/u=3147551902,1507581095&fm=253&fmt=auto&app=138&f=JPEG?w=480&h=854;
                https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fb-ssl.duitang.com%2Fuploads%2Fitem%2F201610%2F18%2F20161018154136_32X8v.thumb.700_0.jpeg&refer=http%3A%2F%2Fb-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1651479686&t=4545b4103e084b7099cb472e53eec951;
                https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fb-ssl.duitang.com%2Fuploads%2Fitem%2F201612%2F09%2F20161209133908_HLQ8a.thumb.700_0.jpeg&refer=http%3A%2F%2Fb-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1651479686&t=f86eb6b2386ba7294d70a2c8313f4a20;
                https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fwww.51wendang.com%2Fpic%2F885e5243d1801169d107470d%2F41-810-jpg_6-1080-0-0-1080.jpg&refer=http%3A%2F%2Fwww.51wendang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1651479686&t=3f93424d51d927e55293264eb98bf4e1;
                https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fhbimg.b0.upaiyun.com%2Ff7d9ec39dea100a339b0c7208d089a454b9e8a8327e62-OsYvVg_fw658&refer=http%3A%2F%2Fhbimg.b0.upaiyun.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1651479686&t=82b37cc10562820aa4ec3c89980e4034
                `,
                nickname: "建瓯市",
                praise: 294,
                state: 0,
                time: "2022-02-28 19:45:31",
                userId: 11,
            },
            {
                bodyId: 34,
                classname: "跳蚤市场",
                collection: 12,
                content: "交友",
                img: "https://img0.baidu.com/it/u=1091402921,2802217338&fm=253&fmt=auto&app=138&f=JPEG?w=562&h=500",
                imgs: `https://img1.baidu.com/it/u=3323142671,3964503062&fm=253&fmt=auto&app=120&f=JPEG?w=690&h=295
                `,
                nickname: "阿斯弗极品",
                praise: 14,
                state: 0,
                time: "2022-03-28 9:13:3",
                userId: 11,
            }
        ]
    },
}
</script>

<style>
.friend{
    background-color: #fafafa;
    overflow-y: scroll;
}
</style>